<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>极速汽车 - 高端汽车销售平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!--    const API_URL = "{{ api_url }}";-->
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --accent: #e74c3c;
            --light: #ecf0f1;
            --dark: #34495e;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        /* 导航栏样式 */
        .navbar {
            background-color: var(--primary);
            color: white;
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .logo i {
            color: var(--accent);
            margin-right: 0.5rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 1.5rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 0.5rem;
        }

        .nav-links a:hover {
            color: var(--secondary);
        }

        .nav-buttons {
            display: flex;
            align-items: center;
        }

        .btn {
            padding: 0.6rem 1.5rem;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary {
            background-color: var(--accent);
            color: white;
        }

        .btn-secondary {
            background-color: transparent;
            color: white;
            border: 1px solid white;
            margin-right: 1rem;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        /* 头部横幅 */
        .hero {
            background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            height: 70vh;
            display: flex;
            align-items: center;
            color: white;
            padding: 0 5%;
            text-align: center;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        /* 热门车型 */
        .container {
            max-width: 1200px;
            margin: 3rem auto;
            padding: 0 2rem;
        }

        .section-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .section-title h2 {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .section-title p {
            color: #777;
            max-width: 600px;
            margin: 0 auto;
        }

        .cars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .car-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .car-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }

        .car-img {
            height: 200px;
            overflow: hidden;
        }

        .car-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .car-card:hover .car-img img {
            transform: scale(1.05);
        }

        .car-info {
            padding: 1.5rem;
        }

        .car-make {
            color: var(--secondary);
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .car-model {
            font-size: 1.4rem;
            margin: 0.5rem 0;
            color: var(--dark);
        }

        .car-price {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent);
            margin: 1rem 0;
        }

        /* 特色区域 */
        .features {
            background-color: var(--light);
            padding: 4rem 0;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .feature-card {
            text-align: center;
            padding: 1.5rem;
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--secondary);
            margin-bottom: 1rem;
        }

        .feature-card h3 {
            margin-bottom: 0.8rem;
            color: var(--dark);
        }

        /* 品牌展示 */
        .brands {
            padding: 3rem 0;
        }

        .brand-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            margin-top: 1.5rem;
        }

        .brand-item {
            width: 120px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1rem;
            transition: var(--transition);
        }

        .brand-item:hover {
            transform: scale(1.1);
        }

        .brand-item img {
            max-width: 100%;
            max-height: 100%;
            filter: grayscale(100%);
            transition: filter 0.3s;
        }

        .brand-item:hover img {
            filter: grayscale(0%);
        }

        /* 页脚 */
        .footer {
            background-color: var(--primary);
            color: white;
            padding: 3rem 2rem 1.5rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 1.2rem;
            position: relative;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--accent);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.6rem;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #bbb;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero {
                height: 60vh;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero p {
                font-size: 1rem;
            }
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-links.active {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--primary);
                padding: 1rem 0;
            }

            .nav-links.active li {
                margin: 0.5rem 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="logo">
            <i class="fas fa-car"></i>
            <span>极速汽车</span>
        </div>

        <button class="mobile-menu-btn">
            <i class="fas fa-bars"></i>
        </button>

        <ul class="nav-links">
            <li><a href="#" class="active">首页</a></li>
            <li><a href="#">车型展示</a></li>
            <li><a href="#">促销活动</a></li>
            <li><a href="#">金融服务</a></li>
            <li><a href="#">联系我们</a></li>
        </ul>


    </nav>

    <!-- 头部横幅 -->
    <section class="hero">
        <div class="hero-content">
            <h1>发现您的梦想座驾</h1>
            <p>探索我们精心挑选的高品质新车与认证二手车，享受专业购车顾问服务</p>
            <a href="#" class="btn btn-primary">浏览车型</a>
        </div>
    </section>

    <!-- 热门车型 -->
    <section class="container">
        <div class="section-title">
            <h2>热门推荐车型</h2>
            <p>精选最受欢迎的车型，满足不同驾驶需求</p>
        </div>

        <div class="cars-grid">
            <!-- 汽车卡片 1 -->
            <div class="car-card">
                <div class="car-img">
                    <img src="https://images.unsplash.com/photo-1542362567-b07e54358753?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="BMW 5 Series">
                </div>
                <div class="car-info">
                    <div class="car-make">宝马</div>
                    <h3 class="car-model">5系 2023款</h3>
                    <p>豪华轿车 | 2.0T 涡轮增压 | 自动挡</p>
                    <div class="car-price">¥428,000</div>
                    <a href="#" class="btn btn-primary" style="width: 100%; text-align: center; margin-top: 10px;">查看详情</a>
                </div>
            </div>

            <!-- 汽车卡片 2 -->
            <div class="car-card">
                <div class="car-img">
                    <img src="https://images.unsplash.com/photo-1553440569-bcc63803a83d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1111&q=80" alt="Mercedes GLE">
                </div>
                <div class="car-info">
                    <div class="car-make">奔驰</div>
                    <h3 class="car-model">GLE SUV</h3>
                    <p>豪华SUV | 3.0T 混合动力 | 自动挡</p>
                    <div class="car-price">¥689,000</div>
                    <a href="#" class="btn btn-primary" style="width: 100%; text-align: center; margin-top: 10px;">查看详情</a>
                </div>
            </div>

            <!-- 汽车卡片 3 -->
            <div class="car-card">
                <div class="car-img">
                    <img src="https://images.unsplash.com/photo-1580273916550-e323be2ae537?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Tesla Model 3">
                </div>
                <div class="car-info">
                    <div class="car-make">特斯拉</div>
                    <h3 class="car-model">Model 3</h3>
                    <p>纯电动 | 单次充电600km | 自动辅助驾驶</p>
                    <div class="car-price">¥279,000</div>
                    <a href="#" class="btn btn-primary" style="width: 100%; text-align: center; margin-top: 10px;">查看详情</a>
                </div>
            </div>

            <!-- 汽车卡片 4 -->
            <div class="car-card">
                <div class="car-img">
                    <img src="https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Audi A6">
                </div>
                <div class="car-info">
                    <div class="car-make">奥迪</div>
                    <h3 class="car-model">A6 豪华版</h3>
                    <p>豪华轿车 | 2.0T 涡轮增压 | 自动挡</p>
                    <div class="car-price">¥389,000</div>
                    <a href="#" class="btn btn-primary" style="width: 100%; text-align: center; margin-top: 10px;">查看详情</a>
                </div>
            </div>
        </div>
    </section>

    <!-- 品牌展示 -->
    <section class="container brands">
        <div class="section-title">
            <h2>合作品牌</h2>
            <p>我们提供众多国际知名汽车品牌</p>
        </div>

        <div class="brand-grid">
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/BMW.svg/1200px-BMW.svg.png" alt="BMW">
            </div>
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Mercedes-Logo.svg/1200px-Mercedes-Logo.svg.png" alt="Mercedes-Benz">
            </div>
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/Audi-Logo_2016.svg/1200px-Audi-Logo_2016.svg.png" alt="Audi">
            </div>
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Tesla_Motors.svg/1200px-Tesla_Motors.svg.png" alt="Tesla">
            </div>
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Volkswagen_logo_2019.svg/1200px-Volkswagen_logo_2019.svg.png" alt="Volkswagen">
            </div>
            <div class="brand-item">
                <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Toyota_EU.svg/1200px-Toyota_EU.svg.png" alt="Toyota">
            </div>
        </div>
    </section>

    <!-- 特色服务 -->
    <section class="features">
        <div class="section-title">
            <h2>我们的特色服务</h2>
            <p>为您提供全方位的汽车购买与售后服务</p>
        </div>

        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-car-alt"></i>
                </div>
                <h3>7天无理由退换</h3>
                <p>购车后7天内，如对车辆不满意可无理由退换</p>
            </div>

            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-shield-alt"></i>
                </div>
                <h3>专业检测</h3>
                <p>所有车辆均经过专业检测，确保车况透明无隐患</p>
            </div>

            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-file-contract"></i>
                </div>
                <h3>灵活金融方案</h3>
                <p>提供多种贷款方案，最低首付15%</p>
            </div>

            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-tools"></i>
                </div>
                <h3>免费保养</h3>
                <p>购买指定车型可享终身免费基础保养服务</p>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="footer-content">
            <div class="footer-column">
                <h3>关于我们</h3>
                <p>极速汽车成立于2010年，致力于为消费者提供高品质的新车和认证二手车销售服务。</p>
            </div>

            <div class="footer-column">
                <h3>快速链接</h3>
                <ul class="footer-links">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">车型展示</a></li>
                    <li><a href="#">促销活动</a></li>
                    <li><a href="#">金融服务</a></li>
                </ul>
            </div>

            <div class="footer-column">
                <h3>联系我们</h3>
                <ul class="footer-links">
                    <li><i class="fas fa-map-marker-alt"></i> 翻斗花园二号楼一零零一室</li>
                    <li><i class="fas fa-phone"></i> 999-999-9999</li>
                    <li><i class="fas fa-envelope"></i> 3540587084@qq.com</li>
                    <li><i class="fas fa-clock"></i> 周一至周日 9:00-21:00</li>
                </ul>
            </div>
        </div>


    </footer>

    <script>
        // 移动端菜单切换
        document.querySelector('.mobile-menu-btn').addEventListener('click', function() {
            document.querySelector('.nav-links').classList.toggle('active');
        });

        // 简单的卡片悬停效果
        document.querySelectorAll('.car-card').forEach(card => {
            card.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-5px)';
            });

            card.addEventListener('mouseleave', function() {
                this.style.transform = 'translateY(0)';
            });
        });
    </script>
</body>
</html>